package GenericsTest2;

import java.util.ArrayList;

public class Test2 {
    public static void main(String[] args) {
        ArrayList<String> list1 =new ArrayList<>();
        MyArrayList.addAll(list1,"aaa","bbb","ccc","ddd");
        System.out.println(list1);

        System.out.println("---------------------------------");

        ArrayList<Integer> list2=new ArrayList<>();
        MyArrayList.addAll2(list2,1,2,3,3,3,3,3,3,3,3,3,3,3,3,3,3);//用来添加很多元素
        System.out.println(list2);
    }
}
